home *** CD-ROM | disk | FTP | other *** search
Text File | 1987-01-01 | 11.1 KB | 413 lines | [TEXT/EDIT] |
- DeskZap version 1.3
-
- by Bruce Tomlin
-
- CIS: 72507,2742
-
- GEnie: BTOMLIN
-
-
-
- DeskZap is a desk accessory which will let you perform many useful functions
- from anywhere you can use a desk accessory.
-
-
-
- With DeskZap, you can:
-
- Ñ set the Finder information for a file (including the Protect bit)
-
- Ñ remove linefeeds, control characters, etc. from text files
-
- Ñ delete, rename, copy, and create files
-
- Ñ move files to different HFS folders
-
- Ñ create HFS folders
-
- Ñ close open files
-
-
-
- About DeskZap 1.3╔
-
- This is a shareware program. If you like it, and continue to use it, please
- send $15 to:
-
- Bruce Tomlin
-
- 645 Weatherly
-
- San Antonio, TX 78239
-
-
-
- Set file attributes╔
-
- --------------------
-
- This will change the Finder information for a file. You can change the
- Finder bits, the file's type and creator, and the information telling where
- the file's icon appears in its window.
-
- Note: When using DeskZap under the Finder, if you try to change a file's
- attributes, and if either the file was created since the last time you were
- in the Finder, or you move the file's icon around, the attributes will revert
- to what they were before you entered the Finder. (The exception to this is a
- file in a closed HFS folder.) Because of this, if you create a file, you are
- immediately asked for the file's type and creator. The default is a TEXT
- file for MDS EDIT.
-
- Note: The "Protected" bit will only work if you have either the 64k ROMs
- or the 128k ROMs. It will not work on MacWorks (Lisa/XL) or any future ROMs
- without the protect bit code being updated. Why? Because I did direct
- calls to the ROMs in order to get the easiest and most reliable method of
- setting the protect bit. If it won't work, the check box will be disabled,
- but it will still show whether the file is protected or not.
-
-
-
-
-
-
-
- About the Finder bits:
-
-
-
- Bit Meaning
-
- Protected The Finder will not copy a file with this bit set.
-
- This bit is used by most copy protected software.
-
- File Locked The file can't be written to. This bit is set by the
-
- "Locked" check box in the "Get Info" windows of the newer
-
- (5.0 and later) Finders.
-
- Locked This bit is set by the "Locked" check box in all Finders.
-
- Invisible If this bit is set, the file will not appear in a Finder
-
- window or on the desktop.
-
- Bundle Set if the file contains icon information for the Finder.
-
- System If this bit is set, the Finder will not allow you to rename
-
- the file, and it will also mention that you are trying to
-
- delete a system file if you drag it into the trash.
-
- Bozo This bit is used by very early copy protections. Finders
-
- before 5.0 will not allow you to copy a file with it set.
-
- Busy Used internally by the Finder
-
- Changed Used internally by the Finder
-
- Inited This bit is set if the Finder has given the file a place in
-
- a window or on the desktop.
-
- Shared Set if application is shared and is opened read-only
-
- (128K ROM only)
-
- Cached Set if file should be cached (not implemented)
-
- Always Switch If this bit is set, Finders 5.0 and later will always try to
-
- switch to the system on the disk containing the application
-
- when it is launched.
-
- Never Switch (not implemented)
-
- Bit 3 Reserved, currently unused
-
- Bit 2 Reserved, currently unused
-
- Bit 1 Used internally by the Finder
-
- On Desk Set if file/folder is on the desktop (Finder 5.0 and later)
-
-
-
-
-
- The following items will filter the contents of a text file into a new text
- file:
-
-
-
- Strip linefeeds╔ All linefeeds are removed from the file.
-
- Strip control chars╔ All control characters (except for carriage returns)
-
- are removed from the file.
-
- Strip high bit╔ The high bit of each character in the file is removed.
- (This can be useful for converting word processing
-
- files from other computers, such as WordStar files.)
-
- Add linefeeds╔ Linefeeds are put after each carriage return character
-
- in the file.
-
- Strip trailing blanks╔ All blanks at the end of a line are removed.
-
- (This can be useful with files created by MacTerminal.)
-
-
-
-
-
- Delete a file╔
-
- This will delete a file.
-
-
-
- Rename a file╔
-
- This will rename a file, and will also move a file from one HFS folder to
- another. To move a file to a different folder, first select the file, then
- rename it to be in the destination folder. Note that the file is moved
- before it is renamed. If you try to move the file and rename it at the same
- time, and a file with the same name as the original file exists in the
- destination folder, then the file can't be moved.
-
- Note also that a file can't be renamed to another disk. Copy the file
- instead.
-
-
-
- Copy a file╔
-
- ------------
-
- This will copy a file, either onto the same disk, or onto another disk. All
- Finder bits are copied except for Inited, Protected, and File Locked.
-
-
-
- Create a file╔
-
- --------------
-
- This will create a new file and ask you for the file type and creator. The
- default name is "Empty File".
-
-
-
- Create an HFS folder╔
-
- ---------------------
-
- This will create a new folder on an HFS disk. Note that you can't create HFS
- folders on a non-HFS disk. This results in an error code of -123, which
- means just that.
-
-
-
- Delete resource fork╔
-
- ---------------------
-
- This will delete the resource fork of a file. Be careful with 'Delete
- resource fork╔'. It is intended to let you get rid of resource fork
- information in files (Mac Write, MDS Edit and Mac Terminal all have a
- resource fork in their documents) so that you can squeeze a bit more space
- out of a disk. This may remove some information, such as Mac Terminal
- settings, or the tab settings in MDS Edit, so use this only when you don't
- need any such settings anymore. This command will only let you mess with
- files that have both a data fork and a resource fork, so it will
- unfortunately let you select the System file (which has a data fork for
- system patches). So, make sure that you know what you are doing when using
- this, and be careful, because this is quite permanent! (Your only chance of
- recovery is to delete the file and use MacTools to recover it.)
-
-
-
- Close an open file╔
-
- -------------------
-
- This will close a file which is currently open. Be careful with 'Close an
- open file╔'! If at all possible, throw the disk into the Trash (if it is not
- the current startup disk) or switch startup disks first and then throw the
- disk into the Trash. (Shutting down your Mac will work too.)
-
- This is mostly useful for people who write applications which write to
- files, because, sometimes, a program under development may 'forget' to close
- a file, (or maybe the programmer forgot!) and the file is stuck open.
-
-
-
- Close
-
- -----
-
- This closes DeskZap and removes it from the menu bar.
-
-
-
-
-
- Some info:
-
- ----------------
-
- The commands will allow you to perform their functions repeatedly until you
- press the 'Cancel' button.
-
-
-
- The newer Finders will recognize the renaming and deletion of files, but the
- older Finders (such as 1.1g) may have unpredictable results. I run this
- under Finder 5.3 myself.
-
-
-
- If you rename a file to the same name with some letters changed between upper
- and lower case, the Finder won't display this change on the screen unless you
- click on its icon.
-
-
-
- If you are running under System 3.2, there is a bug in the system code which
- handles the Open and Save dialogs. If there is any window on the screen
- needing to be updated (outside of the dialog), a newly inserted disk won't be
- recognized until you click on one of the items in the dialog. Unfortunately,
- there is no way to work around this bug, so you'll just have to live with it
- until System 3.3 comes out.
-
-
-
- In the future, I plan to write a companion desk accessory called 'DeskZap2'
- which will perform simple FEdit-type functions.
-
-
-
- I'm interested in hearing any comments you may have. (or <eek!> bug
- reports!) Please tell me which version you have! Also tell me where you got
- your copy of DeskZap (if you want to).
-
-
-
- Please remember that this is a shareware program, so send in the $15 if you
- find this desk accessory useful.
-
-
-
-
-
- Changes from version 1.1 to version 1.2:
-
- ----------------------------------------
-
- The speed of the file copy and file filter functions has been improved by
- trying to keep as much of the file in memory at one time as is possible. On
- a ramdisk, it takes about 8 seconds to add linefeeds to a test file composed
- of 32767 carriage returns, as opposed to about 2 minutes in version 1.1. I
- couldn't compare it with the original File Diddler program, which doesn't
- work at all with the 128k ROMs. Also, disk swapping is reduced, making it
- bearable (hopefully) with only one disk drive.
-
-
-
- A disk error which occured during the file filter functions would not be
- reported unless you pressed the 'Cancel' button after being asked for another
- file to process. This has been fixed.
-
-
-
- The dialog for 'Set file attributes╔' has been cleaned up a bit.
-
-
-
- If you do not have HFS installed, 'Create HFS Folder╔' is disabled.
-
-
-
- 'Delete resource fork╔' has been added.
-
-
-
-
-
- Changes from version 1.2 to version 1.3:
-
- ----------------------------------------
-
- 'Set file attributes╔' now supports the File Locked bit and the newer Finder
- bits, and will now allow you to change the protect bit (unless you have a
- Lisa/XL or a set of ROMs which haven't been released yet).
-
-
-
- I originally wasn't planning on supporting the protect bit because of the
- inherent problems with setting it, but I finally decided that if I kept the
- ROM specific code to one assembly language procedure and disabled it for
- unknown ROMs, it would be acceptable.
-
-
-
- 'Strip Larry Loeb╔' was removed because some people thought it was silly. It
- has been replaced with 'Strip trailing blanks╔'.
-
-
-
- 'Copy a file╔' will now copy over the destination file if it already exists.
-
-
-
- 'Rename a file╔' will now let you move a file into a different HFS folder.
-
-
-
- 'Close an open file╔' will not let you close the System file or the current
- application.
-
-
-
- The system error alert box code has been changed to describe the more common
- error messages.
-
-
-
-
-
- About Larry Loeb:
-
- -----------------
-
- First, a word about File Diddler. This program was written to perform the
- file stripper functions, but it didn't work with the new ROMs. A friend
- pointed this out to me, I thought I could make a desk accessory out of it,
- and that's why I made DeskZap.
-
-
-
- One of the things that was in File Diddler was "Strip Larry Loeb" which
- brought up a dialog with a window titled "La Bomba" and a message saying
- "Illegal or rude command! ID=-4.5".
-
-
-
- File Diddler was written by Scott Watson of Red Ryder fame, and Larry Loeb
- was one of his beta testers. Therefore, it was intended as a little joke by
- Scott Watson.
-
-
-
- I put it into my earlier versions of DeskZap because just because it was in
- File Diddler, but have now taken it out because some people have thought it
- was silly, and, besides, I've come up with something better anyway. So, as Scott Watson would put it, that's the "inside poop".
-
-